import request from '@/utils/request'

export function list(query) {
    return request({
        url: '/ownJuheApi/statistics/list',
        method: 'get',
        params: query
    })
}

export function channelList(query) {
    return request({
        url: '/ownJuheApi/statistics/channelList',
        method: 'get',
        params: query
    })
}

export function facet(query) {
    return request({
        url: '/ownJuheApi/statistics/statisticsTime',
        method: 'get',
        params: query,
        timeout: 1000 * 60 * 2
    })
}


export function channelFacet(query) {
    return request({
        url: '/ownJuheApi/statistics/statisticsChannel',
        method: 'get',
        params: query
    })
}


export function channelFacetHistory(query) {
    return request({
        url: '/ownJuheApi/statistics/statisticsChannelHistory',
        method: 'get',
        params: query
    })
}

export function businessTypeFacet(query) {
    return request({
        url: '/ownJuheApi/statistics/statisticsBusinessType',
        method: 'get',
        params: query
    })
}

export function businessTypeFacetHistory(query) {
    return request({
        url: '/ownJuheApi/statistics/statisticsBusinessTypeHistory',
        method: 'get',
        params: query
    })
}



// 导出
export const exportCsv = '/ownJuheApi/statistics/exportCsv'
